<%@ Page Language="vb" AutoEventWireup="false" Codebehind="LookupDataList.aspx.vb" Inherits="MIMS_WRS.Web.LookupDataList"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>LookupDataList</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		var cnt=0;
		function Check_Onclick(obj) {
			if (obj.checked) 
				cnt++;
			else
				cnt--;
		}

		function body_onload() {
		
			if (window.document.getElementById("btnAdd"))
				window.document.getElementById("btnAdd").onclick = btnAdd_click;
			if (window.document.getElementById("btnRemove"))
				window.document.getElementById("btnRemove").onclick = btnRemove_click;
		}
		
		function btnAdd_click() {
			
			var reval;
			reval = window.showModalDialog('../Dialogs/ShowDialog.aspx?src=<%= Me.AddLookupDataPopupURL %>',"","dialogHeight: 150px; dialogWidth: 300px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; status: No;")
			if (reval != null) {
				
				return true;
			}
			return false
		}
		
		function btnRemove_click() {
			if (cnt>0) {
				return confirm("Are you sure you want to delete?");
			} else {
				alert("Please select item to delete!");
				return false;				
			}
		}
		//-->
		</script>
	</HEAD>
	<body onload="body_onload();">
		<form id="Form1" method="post" runat="server">
			<h2 class="pageheading"><asp:label id="lblPageTitle" Runat="server"></asp:label></h2>
			<table class="normal" cellSpacing="1" cellPadding="3" width="100%">
				<tr>
					<td height="30"><asp:button id="btnAdd" runat="server" Width="75px" CssClass="buttonstyle" Text="Add"></asp:button><IMG src="../Images/trans.gif" width="15">
						<asp:button id="btnRemove" runat="server" Width="75px" CssClass="buttonstyle" Text="Remove"></asp:button><IMG src="../Images/trans.gif" width="15">
						<asp:button id="btnBack" runat="server" Width="75px" Text="Back"></asp:button></td>
				</tr>
				<TR>
					<TD><asp:datagrid id="dgLKDList" runat="server" Width="100%" CssClass="normal" AutoGenerateColumns="False"
							CellPadding="4" BackColor="White" BorderWidth="1px" BorderStyle="Solid" BorderColor="Thistle">
							<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
							<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
							<ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
							<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign="Center" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
							<FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
							<Columns>
								<asp:TemplateColumn>
									<ItemStyle HorizontalAlign="Center" Width="10px"></ItemStyle>
									<ItemTemplate>
										<input type=checkbox onclick="Check_Onclick(this);" runat=server id="chkSelection" value='<%# DataBinder.Eval(Container, "DataItem.LKD_ID_PK") %>' NAME="chkSelection">
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="Value 1">
									<ItemTemplate>
										<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.VALUE1") %>' >
										</asp:Label>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="VALUE2" HeaderText="Value 2"></asp:BoundColumn>
								<asp:BoundColumn DataField="VALUE3" HeaderText="Value 3"></asp:BoundColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF" Mode="NumericPages"></PagerStyle>
						</asp:datagrid></TD>
				</TR>
			</table>
		</form>
	</body>
</HTML>
